﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Mapster.Utils;

using Microsoft.AspNetCore.DataProtection.KeyManagement;
using Microsoft.AspNetCore.Http.HttpResults;

using OfficialWeb.Core;

using SqlSugar;

namespace OOS.Core.Cart
{
    /// <summary>
    /// 购物车
    /// </summary>
    [SugarTable("shopping_cart")]
    public class ShoppingCart: IdAndDataAndIsDeletedBase
    {
        /// <summary>
        /// 套餐id
        /// </summary>
        [SugarColumn(ColumnName = "setmeal_id")]
        public int SetmealId { get; set; }
        /// <summary>
        /// 菜品id
        /// </summary>
        [SugarColumn(ColumnName = "dish_id")]
        public int DishId { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        [SugarColumn(ColumnName = "user_id")]
        public int UserId { get; set; }
        /// <summary>
        /// 选择数量
        /// </summary>
        [SugarColumn(ColumnName = "num")]
        public int Num {  get; set; }
        /// <summary>
        /// 菜品口味
        /// </summary>
        [SugarColumn(ColumnName = "flavor_string")]
        public String FlavorString { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        [SugarColumn(ColumnName = "total_money")]
        public double TotalMoney { get; set; }
    }
}
